<%@ include file="/taglibs.jsp"%>
 
<head>
    <title><fmt:message key="organizationDetail.title"/></title>
    <meta name="heading" content="<fmt:message key='organizationDetail.heading'/>"/>
</head>
 
<s:form id="organizationForm" action="saveOrganization" method="post" validate="true">
    <li style="display: none">
        <s:hidden key="organization.id"/>
    </li>
    <s:textfield key="organization.name" required="false" cssClass="text medium"/>
    <s:textfield key="organization.description" required="false" cssClass="text medium"/>
 
 <s:iterator value="organization.paymentMethods" id="shippingMethod">

    <html:checkbox property="shippingMethodId" value="shippingMethod.id">shippingMethod.name</html:checkbox> 
 
 </s:iterator>
    <li class="buttonBar bottom">
        <s:submit cssClass="button" method="save" key="button.save" theme="simple"/>
        <c:if test="${not empty organization.id}">
            <s:submit cssClass="button" method="delete" key="button.delete"
                onclick="return confirmDelete('Organization')" theme="simple"/>
        </c:if>
        <s:submit cssClass="button" method="cancel" key="button.cancel" theme="simple"/>
    </li>
</s:form>
 
<script type="text/javascript">
    Form.focusFirstElement($("organizationForm"));
</script>